﻿using EFCore.Models;
using SIService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SService
{
    public class PublicAttachmentS : PublicAttachmentSI
    {
        private readonly WmssystemContext myDb;

        public PublicAttachmentS(WmssystemContext myDb)
        {
            this.myDb = myDb;
        }
        public Task<int> FUpd(PO_PublicAttachment pO_PublicAttachment)
        {
            myDb.PO_PublicAttachment.Add(pO_PublicAttachment);
            return myDb.SaveChangesAsync();
        }
    }
}
